﻿using Abp.Application.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WanFang.Test
{
    public interface IDynamicFieldService : IApplicationService
    {
        /// <summary>
        /// 添加模板，并且动态添加字段
        /// </summary>
        /// <param name="fname"></param>
        /// <param name="ftype"></param>
        Task CreateField(int materialId, string[] fname, string[] ftype);
        JianCeTemplate Get(int id);
        IList<JianCeTemplate> GetList();
        /// <summary>
        /// 获取物料的检测模板
        /// </summary>
        /// <param name="materialId"></param>
        /// <returns></returns>
        IList<JianCeTemplate> GetList(int materialId);
        void Add(JianCeTemplate entity);
        void Update(JianCeTemplate entity);
        void Delete(JianCeTemplate entity);
        void Delete(int id);
        void AddJianCeItem(int jianceId,Dictionary<string,string> dic);
    }
}
